package com.libbase.mvp.presenter;

import com.chan.net.Result;
import com.libbase.bean.NyqfBean;
import com.base.kotlin.IModel;
import com.base.kotlin.mvp.IView;

import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface NyqfContract {

    interface Model extends IModel<NyqfMvpApi> {
        Flowable<Result<NyqfBean>> getTitles();
    }

    interface View extends IView {
        void onSuccessNyqfTitle(Result<NyqfBean> result);
    }

    interface Presenter {
        void getTitles();
    }

    interface NyqfMvpApi {
        @GET("raw/master/nyqf_data.json")
        Flowable<Result<NyqfBean>> getnyqfNews(@Query("nav") String nav);

        @GET("raw/master/nyqf_titles.json")
        Flowable<Result<NyqfBean>> getnyqfTitles();
    }
}
